package com.clear.honghefinance.biz.modules.system.resource.converter;

import com.clear.honghefinance.biz.modules.system.resource.domain.entity.SysResource;
import com.clear.honghefinance.biz.modules.system.resource.domain.dto.CreateSysResourceDTO;
import com.clear.honghefinance.biz.modules.system.resource.domain.vo.GetSysResourceVO;
import com.clear.honghefinance.biz.modules.system.resource.domain.vo.ListSysResourceVO;
import org.mapstruct.Mapper;

import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SysResourceConverter {

    SysResourceConverter INSTANCE = Mappers.getMapper(SysResourceConverter.class);

    SysResource convertDTOToSysResourceEntity(CreateSysResourceDTO dto);

    List<ListSysResourceVO> convertSysResourceListToListSysResourceVOList(List<SysResource> sysResourceList);

    GetSysResourceVO convertSysResourceEntityToSysResourceVO(SysResource sysResource);
}
